<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
int num=Integer.parseInt(request.getParameter("num"));
int rnum=Integer.parseInt(request.getParameter("randomnum"));
if(num==rnum) out.print("猜对了");
else if(num>rnum)out.print("大了，你猜的数是"+num+",系统产生的随机数是"+rnum);
else out.print("小了，你猜的数是"+num+",系统产生的随机数是"+rnum);
%>
</body>
</html>